package com.wh.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wh.springboot.common.entity.HealthClockData;
import com.wh.springboot.mapper.HeathClockMapper;
import com.wh.springboot.service.HeathClockService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Service交给spring管理
 */
@Service
public class HeathClockServiceImpl extends ServiceImpl<HeathClockMapper, HealthClockData> implements HeathClockService {
    @Resource
    private HeathClockMapper heathClockMapper;
    @Override
    public List<HealthClockData> findByUserId(Integer userId) {
        return heathClockMapper.findByUserId(userId);
    }
}
